package com.umedcn.dao;

import com.umedcn.mapper.PostMapper;
import com.umedcn.model.Post;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by jiangadam on 2017/8/3.
 */
@Component
public class PostDao {
    @Autowired
    private PostMapper postMapper;

    public Post getPosts(Integer post_id){
        return  postMapper.getPosts(post_id);
    }
}
